<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
    <%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
<object id="LODOP" classid="clsid:2105C259-1E0C-4534-8141-A753534CB4CA" width=0 height=0></OBJECT>
<script type="text/javascript" src="<s:url value='/resources/js/jquery/jquery-1.5.2.min.js'/>"></script> 
<script type="text/javascript">
	
	$(function(){
		draw();
	}); 
	
	
	function draw(){
		//LODOP=getLodop(document.getElementById('LODOP'),document.getElementById('LODOP_EM')); 
		LODOP.ADD_PRINT_RECT(5,3,270,370,2,0);
		LODOP.ADD_PRINT_TEXT(15,102,355,30,"现代旅游导游票据");
		
		LODOP.SET_PRINT_STYLEA(5,"FontSize",10);
		LODOP.SET_PRINT_STYLEA(5,"Bold",1);		
		LODOP.ADD_PRINT_LINE(35,14,35,270,0,1);	
		
		var planid=$(".planid").text();
		LODOP.ADD_PRINT_TEXT(45,20,355,30,"行程编号："+planid);
		var agencyName=$(".agencyName").text();
		LODOP.ADD_PRINT_TEXT(75,20,355,30,"旅行社："+agencyName);
		var groupName=$(".groupName").text();
		LODOP.ADD_PRINT_TEXT(105,20,355,30,"旅行团："+groupName);
		var guideName=$(".guideName").text();
		LODOP.ADD_PRINT_TEXT(135,20,355,30,"导游："+guideName);
		var placeName=$(".placeName").text();
		LODOP.ADD_PRINT_TEXT(165,20,355,30,"购物场所："+placeName);
		var peopleNum=$(".peopleNum").text();
		LODOP.ADD_PRINT_TEXT(195,20,355,30,"出团人数："+peopleNum);
		var buyPeoNum=$(".buyPeoNum").text();
		LODOP.ADD_PRINT_TEXT(225,20,355,30,"购买人数："+buyPeoNum);
		var total=$(".total").text();
		LODOP.ADD_PRINT_TEXT(255,20,355,30,"总计消费："+total);
		
		
		LODOP.ADD_PRINT_LINE(275,14,275,270,0,1);
		LODOP.ADD_PRINT_TEXT(280,20,280,20,"打印时间："+(new Date()).toLocaleDateString()+" "+(new Date()).toLocaleTimeString());
		
		LODOP.PRINT();
	};
</script>
<style type="text/css">

</style>
</head>
<body>
	
	<div style="width: 9cm;line-height: 30px;">
		<div class="guideText">
			<div>
				<span>行程编号：</span>
				<span class="planid"><s:property value="#request.guideAccount.planid" /></span>
			</div>
			<div style="">
				<span>旅行社：</span><span class="agencyName"><s:property value="#request.guideAccount.agencyName" /></span>
			</div>
			<div style="">
				<span>旅行团：</span><span class="groupName"><s:property value="#request.guideAccount.groupName" /></span>
			</div>
			<div class="clr"></div>
			<div style="">
				<span>导游：</span><span class="guideName"><s:property value="#request.guideAccount.guideName" /></span>
			</div>
			<div style="">
				<span>购物场所：</span><span class="placeName"><s:property value="#request.guideAccount.placeName" /></span>
			</div>
			<div style="">
				<span>出团人数：</span><span class="peopleNum"><s:property value="#request.guideAccount.peopleNum" /></span>
			</div>
			<div style="">
				<span>购买人数：</span><span class="buyPeoNum"><s:property value="#request.guideAccount.buyPeoNum" /></span>
			</div>
			<div style="">
				<span>总计消费：</span><span class="total"><s:property value="#request.guideAccount.total" /></span>
			</div>
			<div class="clr"></div>
			<br>
			<br>
		</div>
		<div class="clr"></div>
	</div>
</body>
</html>